package com.woniuxy.dr_mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.dr_mall.entity.DrRegion;

import javax.swing.plaf.synth.Region;
import java.util.List;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张哲轩
 * @since 2021-08-11
 */
public interface IDrRegionService extends IService<DrRegion> {

    //通过pid查询地区信息
    public List<DrRegion> usePidSelect(int pid);

    List<DrRegion> getProvince();
    List<DrRegion> getByPid(Integer pid);
    DrRegion getById(Integer id);
    int getIdByName(String name);
}
